home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir26 / epi601_2.zip / FILES07.EXE / TUTEPED.EPA < prev    next >
Text File  |  1994-08-22  |  7KB  |  205 lines

  1. _If Existfile FIRST.QES then DOS ERASE FIRST.QES
  2. _Singlelines
  3. _Display
  4. This tutorial gives a quick overview of making a questionnaire
  5. in Epi Info.  A questionnaire is the template that guides Epi
  6. Info in making a data file.  Once you have created a questionnaire,
  7. making a data file is an automatic process.
  8.  
  9. After each window like this one, press the <Esc> key to continue...
  10. _Enddisplay
  11. _Display
  12. An Epi Info questionnaire may have up to 500 lines. Headings and
  13. other text may appear anywhere. Places where you will enter data
  14. are called "Fields" or (in the analysis phase), "Variables."
  15.  
  16. To see the types of fields available, look at the back cover of the
  17. Epi Info manual. In EPED, holding down the control key and pressing
  18. "Q" twice (<Ctrl-Q Q>) will display a list of field symbols.  Choosing
  19. a field type from the list will automatically insert the field after
  20. the current cursor positon.
  21.  
  22. You may use this convenient method or simply type the symbols found
  23. on the back of the Epi Info Manual if you prefer.
  24. _Enddisplay
  25. _Display
  26. To begin making your questionnaire, first set EPED for the
  27. questionnaire (QES) mode.  This will turn off word wrap and set
  28. the page size to 23 lines, the size of one screen in the ENTER
  29. program.
  30. _Enddisplay
  31. [Press <F6> for setup and <Spacebar> until mode is QES. Then <Esc>]
  32. _Display
  33. Ok, let's make a questionnaire.  To illustrate the method, we will
  34. use a form for disease surveillance, but questionnaires may be on
  35. any topic--surveys, clinical summaries, outbreak investigations,
  36. telephone calls, or whatever strikes your fancy.
  37. _EndDisplay
  38. _Display
  39. The first item is usually a heading.  This may be several lines, for
  40. example:
  41.                  Costa County Health Department
  42.                         414 First Street
  43.                         Toledo, GA  30061
  44.  
  45. After typing a line, pressing <Ctrl-O> and then C will center the line.
  46.                 (That's <Ctrl-O>, not Ctrl-zero.)
  47. _Enddisplay
  48. [Now type a heading, which may be several lines, and press <Esc> when done]
  49. _Display
  50. As you typed each line, it was "left justified," that is, began at
  51. the left margin.  If you did not center the lines, you may do so in
  52. the next step by moving the cursor to the line with the appropriate
  53. <arrow> key (be sure that <Numlock> is OFF>, and pressing <Ctrl-O C>.
  54. _Enddisplay
  55. [Go back to each line and center it with <Ctrl-O C> if necessary]
  56.  
  57.  
  58. _Display
  59. Let's start the questions with "Last name" and a series of underline
  60. characters to indicate the entry field.  The number of characters
  61. allowed in the entry is indicated by the length of the blank:
  62.  
  63. Last Name ____________
  64. _EndDisplay
  65. [Type "Last Name," a space, and 12 underline characters.]
  66. _Display
  67. You could add other questions in the same way, typing in the
  68. special characters for the fields, but let's try the automatic
  69. field insertion menu.
  70.  
  71. In the next step, add "First name" so that the questionnaire looks
  72. like this:
  73.  
  74. Last Name ____________  First Name
  75.  
  76. Do not press <Enter>, but stay on the same line.
  77. _EndDisplay
  78. [Type "First Name" and press <Esc>]
  79. _Display
  80. In the next step hold the <Ctrl> key down, and press QQ.
  81. Release <Ctrl> and press <Enter> to choose the first field type.
  82. Enter "12" for the length of the field and note how the field pops
  83. into place after "First Name."
  84. _EndDisplay
  85. [Press <Ctrl-Q Q>, <Enter>, 12, <Enter>, and then <Esc> to continue.]
  86. _Display
  87. To save typing, we will type a few more fields for you.
  88. _EndDisplay
  89.  
  90. City or town   _______________ State <A > ZIP <A    >
  91.  
  92. _Display 15
  93. Note that "State" is an upper case field.  Letters typed in this
  94. field will be automatically converted to upper case, so that
  95. "ga," "GA," and "Ga" all become "GA."
  96. _Enddisplay
  97. _Display 15
  98. ZIP code is also an upper-case field, since numeric fields do not
  99. keep leading zeroes, and they are important in ZIP codes.
  100. _EndDisplay
  101. _Display
  102. You may wonder how Epi Info assigns names to the fields.  The
  103. ENTER program looks at the first ten characters of the question
  104. phrase that precedes the field.  "City or Town" will become
  105. CITYORTOWN.
  106.  
  107. This is a rather awkward name for the variable you will manipulate
  108. during analysis, but you can tell ENTER explicitly what names you
  109. would like by placing curly brackets -- { and } -- around the
  110. part of the question that contains the name.
  111. _EndDisplay
  112. [Go back and put curly brackets { } around "City" ]
  113. _Display 15
  114. Your questionnaire (after the heading) should look like this:
  115.  
  116. Last Name ____________  First Name ____________
  117.  
  118. {City} or town   _______________ State <A > ZIP <A     >
  119. _EndDisplay
  120. [If it doesn't, now is the time to go back and fix it.]
  121. _Display 5
  122. Now let's add an automatically incrementing identification number
  123. and fields for age and sex.
  124. _EndDisplay
  125.  
  126. ID <IDNUM>      Age ###         Sex <A> (M,F,U)
  127.  
  128. _Display 15
  129. Now we add a code for disease and disease code.  A later tutorial
  130. will explain how to develop a code list and perform automatic coding,
  131. but for now, let's assume that the disease name and a code will
  132. be entered from the keyboard.
  133. _EndDisplay
  134. Disease <A             >   {Dis}ease {Code} ####
  135.  
  136. _Display 5
  137. Note that the Disease field is an automatic upper case field and
  138. that the second will be called DISCODE.
  139. _EndDisplay
  140. _Display  5
  141. Let's add a date and a multiple-choice question.
  142. _EndDisplay
  143.  
  144. Date <mm/dd/yy>
  145.  
  146. This is the date of:
  147.    1. Onset
  148.    2. Diagnosis
  149.    3. Laboratory Report
  150.    4. Report to Health Dept.
  151.    Date Type #
  152.  
  153. _Display  5
  154. Note the single "#" sign for entering the code of the date type, and
  155. the words "Date Type" preceding it so that the field will be called
  156. DATETYPE.
  157. _EndDisplay
  158. _Display
  159. Multiple-choice questions allow only one answer.  If several choices
  160. can be made, the "Yes/No" field is used.  It serves the same function
  161. as a check box, but allows answers of "Y", "N", and blank for unknown
  162. or unsure.
  163.  
  164. Here are some Yes/No fields...
  165. _EndDisplay
  166.  
  167.  
  168.     Food Handler <Y>
  169.     Day Care     <Y>
  170.     Transfusion  <Y>
  171.     Hospitalized <Y>
  172.  
  173. _Display 5
  174. This questionnaire is brief, but it illustrates methods by which
  175. much longer questionnaires can be created.
  176.  
  177. A separate program, called CHECK allows skip patterns, ranges,
  178. automatic coding, legal values, and other more complex operations
  179. during data to be specified.  Our simple questionnaire is ready,
  180. however to be used in the ENTER program to create a data file
  181. and to enter data.  We will save the questionnaire in EPED and
  182. then transfer to ENTER to make the file.
  183. _EndDisplay
  184.  
  185. [Press <F9> to save the file. Name it FIRST.QES. Press <Enter>, THEN <Esc>.]
  186. :SAVEFILE
  187. _IF EXISTFILE "FIRST.QES" then jump DONE
  188. _Display
  189. Something may have gone wrong, as there doesn't seem to be
  190. a file called FIRST.QES.  Are you sure you pressed <F9>
  191. and gave the file that name?  If not, you can still do
  192. so by pressing <F2> and then pressing "S" for "Save As".
  193. _EndDisplay
  194. [Press <F2>, then S, then enter FIRST.QES]
  195. _If not existfile FIRST.QES then jump SAVEFILE
  196. :DONE
  197. _Display
  198. The questionnaire has been saved as FIRST.QES.
  199. When you return to the main EPI6 menu, choose TUTORIALS and then
  200. ENTERING DATA to continue this adventure.
  201.  
  202. Press <Esc> to continue...
  203. _EndDisplay
  204. _QUIT
  205.